package br.com.ecomanda.controller;

import br.com.ecomanda.dao.ComandaDao;
import br.com.ecomanda.exceptions.ConexaoComBancoDeDadosException;
import br.com.ecomanda.model.Comanda;

public class ComandaController extends GenericController {

	private ComandaDao comandaDao;
	
	public ComandaController(EComandaController parent) throws ConexaoComBancoDeDadosException{
		super(parent);
		this.comandaDao = new ComandaDao();
	}
	
	public Comanda getComanda(int comandaId){
		return comandaDao.getById(comandaId);
	}
	
}
